﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys.Common.Entity;

/// <summary>
/// 打印数据源设置实体.
/// </summary>
[SugarTable("com_base_print_data", "打印数据源设置")]
[Tenant(ClaimConst.TENANTID)]
public class ComBasePrintDataEntity : CLDEntityBase
{
    /// <summary>
    /// 数据源编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "数据源编码")]
    public string Code { get; set; }

    /// <summary>
    /// 数据源名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_Name", ColumnDescription = "数据源名称")]
    public string Name { get; set; }

    /// <summary>
    /// 数据连接.
    /// </summary>
    [SugarColumn(ColumnName = "F_DbLinkId", ColumnDescription = "数据连接")]
    public string DbLinkId { get; set; }

    /// <summary>
    /// sql语句.
    /// </summary>
    [SugarColumn(ColumnName = "F_SqlTemplate", ColumnDescription = "sql语句")]
    public string SqlTemplate { get; set; }
}